#include <iostream>
using namespace std;
int main()
{
    int a,b;
    cin>>a>>b;
    cout<<"周长为："<<2*(a+b)<<endl;
    cout<<"面积为："<<a*b;
    return 0;
}